package net.cl.mvc.wrappers;

import javax.servlet.http.HttpServletRequest;

public class RequestContext {

	private HttpServletRequest request;

	public RequestContext() {
	}

	public RequestContext(HttpServletRequest request) {
		this.setRequest(request);
	}

	public void setRequest(HttpServletRequest request) {
		this.request = request;
	}

	public HttpServletRequest getRequest() {
		return request;
	}

	public String getUserAgent() {
		return request.getHeader("user-agent");
	}

	public Object getAttribute(String name) {
		return request.getAttribute(name);
	}

	public String getParameter(String name) {
		return request.getParameter(name);
	}

}
